function [ arrImage, arrayImageResultColor, arrayResultPosition, isSuccess ] = DisplayImageOLD( arrImaBinary, arrImaOrg, arrayResultPositionInput, IS_DEBUG, ...
     conFilter2,name, FOLDER_RESULT )
%UNTITLED3 Summary of this function goes here
%   Detailed explanation goes here


arrImage = {};
arrayImageResultColor = {};
arrayResultPosition = {};
count = 1;

for i=1:length(arrImaOrg)
    
    h1 = ~arrImaBinary{i};
    

       
    
    Ys = 1;
    [Ye, Xe] = size(h1);
    array = DevideSublineBinary(Ys, Ye);
    % 2. calculate num 0 and num 1
    L = {};
    countAvailLine = 0;
    NUM_MIN_CHANGE = 7;
    NUM_MAX_CHANGE = 25;
    
    save = '';
    for runI=1:3
        L{runI} = h1(array(runI),:);
        [countre, ratio] = ProcessEachRow(h1(array(runI),:));
        save = strcat(save,'-',num2str(countre));
        if ( countre >= NUM_MIN_CHANGE && countre <= NUM_MAX_CHANGE)
            countAvailLine = countAvailLine + 1;
        end
    end
    
    if (IS_DEBUG)
        imwrite(h1,strcat(FOLDER_RESULT,'\',name,'\','_2DISPLAY_',strcat(num2str(i),'-line-',num2str(countAvailLine),'-detail-',save),'.JPG'),'JPG');
    end
    if (countAvailLine > 1)
        arrImage{count} = arrImaBinary{i};
        arrayImageResultColor{count} = arrImaOrg{i};
        arrayResultPosition{count} = arrayResultPositionInput{i};
        %% write to file
        %DEBUG
        %              IS_DEBUG = true;
        if (IS_DEBUG)
            imwrite(h1,strcat(FOLDER_RESULT,'\',name,'\','_3RESULT_',name,strcat(num2str(i),'-line-',num2str(countAvailLine)),'.JPG'),'JPG');
            imwrite(arrImaOrg{i},strcat(FOLDER_RESULT,'\',name,'\','_3RESULTCOLOR_',name,strcat(num2str(i),'-line-',num2str(countAvailLine)),'.JPG'),'JPG');
        end
        count = count + 1;
    else
    end
    clear h1 h2;
end
isSuccess = 1;
clear count;
end

